﻿@model LeadMaster.Models.ClientUsers
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend style="font-family: 'Trebuchet MS'; font-size: 16px; margin-top: 15px">Associate User</legend>

        @Html.HiddenFor(model => model.ClientUsersID)

        <div class="editor-label">
            @Html.Label("User")
        </div>
        <div class="editor-field">
            @Html.DropDownList("UserID", null, new { style = "width:300px;" })
            @Html.ValidationMessageFor(model => model.UserID)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.Label("Company")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CompanyID")
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.Label("Call Centre")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CallCentreID")
        </div>
        <div class="spacer"></div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

<script type="text/javascript">
    $(document).ready(function () {
        $("#UserID").val("@(Model.UserID)");
        $("#CompanyID").val("@(Model.CompanyID)");
        $("#CallCentreID").val("@(Model.CallCentreID)");
    });
</script>